<?php

/**
 * @author phuocndt
 * @copyright 2010
 */
 
require_once('Rmail/Rmail.php');
    
    $mail = new Rmail();

    $mail->setFrom('ushop <ushop@ushop.vn>');
    $mail->setSubject('Test email');
    $mail->setPriority('high');
    $mail->setHTML('<b>Sample HTML</b>');
    $mail->setReceipt('ushop@ushop.vn');
	
	$host = 'ushop.vn';
	$port = '25';
	$helo = 'ushop.vn';
	$auth = false;
	$user = 'ushop';
	$pass = 'letmein@123';
    //$mail -> setSMTPParams($host, $port, $helo, $auth, $user, $pass);
	$address = 'phuocndt@gmail.com';	
    $result  = $mail->send(array($address),'smtp');
?>
	Email has been sent to <?php echo $address; ?>. Result: <?php var_dump($result); ?>